<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="<%=basePath%>resource/theme/css/style.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="<%=basePath%>resource/theme/js/jquery.js"></script>
    <script type="text/javascript">
        $(function () {
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('ul').slideUp();
                if ($ul.is(':visible')) {
                    $(this).next('ul').slideUp();
                } else {
                    $(this).next('ul').slideDown();
                }
            });
        })

    </script>


</head>

<body style="background:#f0f9fd;">
<div class="lefttop"><span></span>功能菜单</div>

<c:if test="${sessionScope.LOGIN_USER.type == 1}">

    <dl class="leftmenu">
        <dd>
            <div class="title"><span><img src="<%=basePath%>resource/theme/images/leftico04.png"/></span>管理员管理</div>
            <ul class="menuson">
                <li><cite></cite><a href="<%=basePath%>user/add.action" target="rightFrame">用户添加</a><i></i></li>

                <li><cite></cite><a href="<%=basePath%>user/list.action" target="rightFrame">管理员管理</a><i></i></li>
                <li><cite></cite><a href="<%=basePath%>user/list.action" target="rightFrame">派单员管理</a><i></i></li>
                <li><cite></cite><a href="<%=basePath%>user/list.action" target="rightFrame">快递员管理</a><i></i></li>

                <li><cite></cite><a href="<%=basePath%>user/list.action" target="rightFrame">客户管理</a><i></i></li>



            </ul>
        </dd>
    </dl>

</c:if>

<c:if test="${sessionScope.LOGIN_USER.type == 2}">
    <dl class="leftmenu">
        <dd>
            <div class="title"><span><img src="<%=basePath%>resource/theme/images/leftico01.png"/></span>订单管理</div>
            <ul class="menuson">
                <li><cite></cite><a href="<%=basePath%>orderform/list.action" target="rightFrame">订单列表</a><i></i></li>
                <li><cite></cite><a href="<%=basePath%>orderform/add.action" target="rightFrame">订单维护</a><i></i></li>
            </ul>
        </dd>
    </dl>

</c:if>

<c:if test="${sessionScope.LOGIN_USER.type == 3}">
    <dl class="leftmenu">
        <dd>
            <div class="title"><span><img src="<%=basePath%>resource/theme/images/leftico01.png"/></span>订单管理</div>
            <ul class="menuson">
                <li><cite></cite><a href="<%=basePath%>orderform/list.action" target="rightFrame">订单列表</a><i></i></li>
                    <%--        <li><cite></cite><a href="<%=basePath%>orderform/add.action" target="rightFrame">订单维护</a><i></i></li>--%>
            </ul>
        </dd>
    </dl>

</c:if>

<c:if test="${sessionScope.LOGIN_USER.type == 4}">
    <dl class="leftmenu">
        <dd>
            <div class="title"><span><img src="<%=basePath%>resource/theme/images/leftico01.png"/></span>订单管理</div>
            <ul class="menuson">
                <li><cite></cite><a href="<%=basePath%>orderform/list.action" target="rightFrame">订单列表</a><i></i></li>
                    <%--        <li><cite></cite><a href="<%=basePath%>orderform/add.action" target="rightFrame">订单维护</a><i></i></li>--%>
            </ul>
        </dd>
    </dl>

</c:if>


<c:if test="${sessionScope.LOGIN_USER.type == 2||sessionScope.LOGIN_USER.type == 3||sessionScope.LOGIN_USER.type == 4}">
    <dl class="leftmenu">
        <dd>
            <div class="title"><span><img src="<%=basePath%>resource/theme/images/leftico04.png"/></span>个人信息维护</div>
            <ul class="menuson">
                <li><cite></cite><a href="<%=basePath%>/user/update.action?id=${sessionScope.LOGIN_USER.id}"
                                    target="rightFrame">用户信息修改</a><i></i></li>
                <c:if test="${sessionScope.LOGIN_USER.type == 2}">
                    <li><cite></cite><a href="<%=basePath%>user/addkdy.action" target="rightFrame">添加快递员</a><i></i></li>
                </c:if>
            </ul>
        </dd>
    </dl>
</c:if>
</body>
</html>
